// Copyright (C) Kumo inc. and its affiliates.
// Author: Jeff.li lijippy@163.com
// All rights reserved.
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as published
// by the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
// GNU Affero General Public License for more details.
//
// You should have received a copy of the GNU Affero General Public License
// along with this program.  If not, see <https://www.gnu.org/licenses/>.
//

#include <nebula/bits/bpacking_avx2.h>
#include <nebula/bits/bpacking_simd256_generated_internal.h>
#include <nebula/bits/bpacking_simd_internal.h>

namespace nebula::internal {

    int unpack32_avx2(const uint32_t *in, uint32_t *out, int batch_size, int num_bits) {
        return unpack32_specialized<UnpackBits256<DispatchLevel::AVX2>>(in, out, batch_size,
                                                                        num_bits);
    }

}  // namespace nebula::internal
